db_constraints.keyed.keyedcollection

The keyedcollection module contains: $(TOC Enforce) $(TOC usableForKeyedCollection) $(TOC BaseKeyedCollection) $(TOC KeyedCollection)

Members

Classes

BaseKeyedCollection
class BaseKeyedCollection(T)

Turns the inheriting class into a base keyed collection. The key is based on the singular class' clustered index. The requirements are taken care of when you include the keyeditem in the T class. If you plan on changing the singular class' clustered index, you must define dup() that returns a new instance of your class.

Enums

Enforce
enum Enforce

Tells the keyed collection which constraints to check.

Mixin templates

KeyedCollection
mixintemplate KeyedCollection(T)

Turns the inheriting class into a keyed collection. The key is based on the singular class' clustered index. The requirements (except for dup) are taken care of when you include the keyeditem in the T class.

Templates

usableForKeyedCollection
template usableForKeyedCollection(alias T)

Makes sure the class is usable for keyed collection. This really just makes sure it has the necessary members that come with keyeditem.

Meta

License

$(GPL2)

Authors

Matthew Armbruster

Source: $(SRC $(SRCFILENAME))